<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class CourseOrder extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'course_orders';

    const UPDATED_AT = null;

    protected $fillable = [
        'user_id',
        'course_id',
        'sale_type',
        'name',
        'price',
        'points',
        'trade_no',
        'cover',
        'user_income_id',
        'user_income',
        'parent_id',
        'direct_distribution_income',
        'grand_id',
        'platform',
        'pay_method',
        'interposition_income',
    ];

    protected $attributes = [
        'parent_id' => 0,
        'direct_distribution_income' => 0,
        'grand_id' => 0,
        'interposition_income' => 0,
        'status' => 1,
    ];
}
